#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QUrl>
#include <QMainWindow>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonValue>
#include <QPushButton>
#include <QTableWidget>
#include <QHeaderView>
#include <QNetworkAccessManager>
#include "downloadbutton.h"
#include "uploadbutton.h"


static const QString base_url="http://106.52.235.101:9090/";


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void handerShow();//处理显示文件信息
    void listShow();


private:
    Ui::MainWindow *ui;
    QTableWidget tableWidget;
    QNetworkAccessManager* manager;
    QNetworkReply *response;//响应
    QPushButton* Refresh;//刷新显示文件
    uploadbutton* upload;//点击弹出选择上传文件
};
#endif // MAINWINDOW_H
